<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>fmp4 player</title>
</head>

<body>


    <script type="text/javascript" src="./wsplayer.js"></script>

    <div class="wsplayer">
        <video id="video1" width="704" height="576" autoplay="autoplay" muted="muted"></video>
    </div>

    <script>
        window.onload = function () {
            var video1 = document.getElementById('video1');
            video1.addEventListener('error', function (e) { console.error(e); });
            player = new wsplayer("ws://10.5.1.101:2000/ch0", video1);
            player.openws();
        };


    </script>

</body>

</html>